﻿using System.Collections;
using System.Collections.Generic;
using System.Web.UI;

namespace TPG.SharePoint.Workflow
{
    //public abstract class WorkflowMultiListFormControl : WorkflowControl
    //{
    //    protected internal abstract void LoadFormData(IEnumerable<WorkflowTask> data, bool isInitialLoad);
    //    protected internal abstract IEnumerable<WorkflowTask> SaveFormData();

    //    internal static WorkflowMultiListFormControl CreateFormControl(Page page, string formUrl)
    //    {
    //        WorkflowControl control = WorkflowControl.CreateFormControl(page, formUrl);
    //        if (control == null)
    //            throw new WorkflowException("No form registered.");

    //        WorkflowMultiListFormControl formControl = control as WorkflowMultiListFormControl;
    //        if (formControl == null)
    //            throw new WorkflowException("Control does not derive from WorkflowMultiListFormControl");

    //        return formControl;
    //    }
    //}

    //public abstract class WorkflowListFormControl : WorkflowControl
    //{
    //    protected internal abstract void LoadFormData(Hashtable data, bool isInitialLoad);
    //    protected internal abstract Hashtable SaveFormData();

    //    internal static WorkflowListFormControl CreateFormControl(Page page, string formUrl)
    //    {
    //        WorkflowControl control = WorkflowControl.CreateFormControl(page, formUrl);
    //        if (control == null)
    //            throw new WorkflowException("No form registered.");

    //        WorkflowListFormControl formControl = control as WorkflowListFormControl;
    //        if (formControl == null)
    //            throw new WorkflowException("Control does not derive from WorkflowListFormControl");

    //        return formControl;
    //    }       
    //}
}
